
 <!DOCTYPE HTML>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  
    <title>Java各个版本的新特性 | iBlog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    
    <meta name="author" content="Yang Linlin">
    

    
    <meta name="description" content="Java 1.0
Oak，1996

Java 1.1
1997


引入JDBC
支持内部类
引入Java Bean
引入RMI
引入反射（仅用于内省）

Java 1.2
1998


引入集合框架Collections
对字符串常量做内存映射
引入JIT编译器
引入对打包的Java文件进行数字签名
引入JFC,包括Swing1.0、拖放和Java 2D类库
引入Java插件
在JDBC中引入">
<meta property="og:type" content="article">
<meta property="og:title" content="Java各个版本的新特性">
<meta property="og:url" content="http://yanglinlin_870.oschina.io/iblog/2017/02/21/java-versions/index.html">
<meta property="og:site_name" content="iBlog">
<meta property="og:description" content="Java 1.0
Oak，1996

Java 1.1
1997


引入JDBC
支持内部类
引入Java Bean
引入RMI
引入反射（仅用于内省）

Java 1.2
1998


引入集合框架Collections
对字符串常量做内存映射
引入JIT编译器
引入对打包的Java文件进行数字签名
引入JFC,包括Swing1.0、拖放和Java 2D类库
引入Java插件
在JDBC中引入">
<meta property="og:updated_time" content="2017-02-21T06:02:26.832Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Java各个版本的新特性">
<meta name="twitter:description" content="Java 1.0
Oak，1996

Java 1.1
1997


引入JDBC
支持内部类
引入Java Bean
引入RMI
引入反射（仅用于内省）

Java 1.2
1998


引入集合框架Collections
对字符串常量做内存映射
引入JIT编译器
引入对打包的Java文件进行数字签名
引入JFC,包括Swing1.0、拖放和Java 2D类库
引入Java插件
在JDBC中引入">

    
    <link rel="alternative" href="/atom.xml" title="iBlog" type="application/atom+xml">
    
    
    <link rel="icon" href="/iblog/img/favicon3.ico">
    
    
    <link rel="apple-touch-icon" href="/iblog/img/logo3.jpg">
    <link rel="apple-touch-icon-precomposed" href="/iblog/img/logo3.jpg">
    
    <link rel="stylesheet" href="/iblog/css/style.css">
</head>

  <body>
    <header>
      
<div>
		
			<div id="imglogo">
				<a href="/iblog/"><img src="/iblog/img/logo3.png" alt="iBlog" title="iBlog"/></a>
			</div>
			
			<div id="textlogo">
				<h1 class="site-name"><a href="/iblog/" title="iBlog">iBlog</a></h1>
				<h2 class="blog-motto"></h2>
			</div>
			<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
			</a></div>
			<nav class="animated">
				<ul>
					<ul>
					 
						<li><a href="/iblog/">主页</a></li>
					
						<li><a href="/iblog/archives">归档</a></li>
					
						<li><a href="/iblog/about">关于</a></li>
					
					<li>
 					
					<form class="search" action="//google.com/search" method="get" accept-charset="utf-8">
						<label>Search</label>
						<input type="search" id="search" name="q" autocomplete="off" maxlength="20" placeholder="搜索" />
						<input type="hidden" name="q" value="site:yanglinlin_870.oschina.io/iblog">
					</form>
					
					</li>
				</ul>
			</nav>			
</div>
    </header>
    <div id="container">
      <div id="main" class="post" itemscope itemprop="blogPost">
  
	<article itemprop="articleBody"> 
		<header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/iblog/2017/02/21/java-versions/" title="Java各个版本的新特性" itemprop="url">Java各个版本的新特性</a>
  </h1>
  <p class="article-author">By
       
		<a href="/iblog/about" title="Yang Linlin" target="_blank" itemprop="author">Yang Linlin</a>
		
  <p class="article-time">
    <time datetime="2017-02-21T02:46:39.119Z" itemprop="datePublished"> 发表于 2017-02-21</time>
    
  </p>
</header>
	<div class="article-content">
		
		<div id="toc" class="toc-article">
			<strong class="toc-title">文章目录</strong>
		
			<ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-0"><span class="toc-number">1.</span> <span class="toc-text">Java 1.0</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-1"><span class="toc-number">2.</span> <span class="toc-text">Java 1.1</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-2"><span class="toc-number">3.</span> <span class="toc-text">Java 1.2</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-3"><span class="toc-number">4.</span> <span class="toc-text">Java 1.3</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-4"><span class="toc-number">5.</span> <span class="toc-text">Java 1.4</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-5"><span class="toc-number">6.</span> <span class="toc-text">Java 5</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-6"><span class="toc-number">7.</span> <span class="toc-text">Java 6</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-7"><span class="toc-number">8.</span> <span class="toc-text">Java 7</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-8"><span class="toc-number">9.</span> <span class="toc-text">Java 8</span></a></li></ol>
		
		</div>
		
		<h3 id="Java-1-0"><a href="#Java-1-0" class="headerlink" title="Java 1.0"></a>Java 1.0</h3><blockquote>
<p>Oak，1996</p>
</blockquote>
<h3 id="Java-1-1"><a href="#Java-1-1" class="headerlink" title="Java 1.1"></a>Java 1.1</h3><blockquote>
<p>1997</p>
</blockquote>
<ul>
<li>引入JDBC</li>
<li>支持内部类</li>
<li>引入Java Bean</li>
<li>引入RMI</li>
<li>引入反射（仅用于内省）</li>
</ul>
<h3 id="Java-1-2"><a href="#Java-1-2" class="headerlink" title="Java 1.2"></a>Java 1.2</h3><blockquote>
<p>1998</p>
</blockquote>
<ul>
<li>引入集合框架Collections</li>
<li>对字符串常量做内存映射</li>
<li>引入JIT编译器</li>
<li>引入对打包的Java文件进行数字签名</li>
<li>引入JFC,包括Swing1.0、拖放和Java 2D类库</li>
<li>引入Java插件</li>
<li>在JDBC中引入可滚动结果集、BLOB、CLOB、批量更新和用户自定义类型</li>
<li>在Applet中添加声音支持</li>
</ul>
<h3 id="Java-1-3"><a href="#Java-1-3" class="headerlink" title="Java 1.3"></a>Java 1.3</h3><blockquote>
<p>2000</p>
</blockquote>
<ul>
<li>引入Java Sound API</li>
<li>jar文件索引</li>
</ul>
<h3 id="Java-1-4"><a href="#Java-1-4" class="headerlink" title="Java 1.4"></a>Java 1.4</h3><blockquote>
<p>2004</p>
</blockquote>
<ul>
<li>XML处理</li>
<li>Java打印服务</li>
<li>引入Logging API</li>
<li>引入Java Web Start</li>
<li>引入JDBC 3.0 API</li>
<li>引入断言</li>
<li>引入Preferences API</li>
<li>引入链式异常处理</li>
<li>支持IPv6</li>
<li>支持正则表达式</li>
<li>引入Image I/O slot machine API</li>
</ul>
<h3 id="Java-5"><a href="#Java-5" class="headerlink" title="Java 5"></a>Java 5</h3><blockquote>
<p>2004</p>
</blockquote>
<ul>
<li>引入泛型</li>
<li>自动装箱和拆箱</li>
<li>枚举</li>
<li>可变参数</li>
<li>for-each循环</li>
<li>静态导入包</li>
<li>注解（元数据）</li>
<li>内省（Introspector）</li>
</ul>
<h3 id="Java-6"><a href="#Java-6" class="headerlink" title="Java 6"></a>Java 6</h3><blockquote>
<p>2006</p>
</blockquote>
<ul>
<li>支持脚本语言</li>
<li>引入JDBC4.0 API</li>
<li>引入Java Compiler API</li>
<li>可插拔注解</li>
<li>增加对Native PKI、Java GSS、Kerberos和LDAP的支持</li>
<li>继承Web Services</li>
</ul>
<h3 id="Java-7"><a href="#Java-7" class="headerlink" title="Java 7"></a>Java 7</h3><blockquote>
<p>2011</p>
</blockquote>
<ul>
<li>Switch语句块允许以字符串作为分支条件</li>
<li>在创建泛型对象时应用类型推断</li>
<li>在一个语句块中捕获多种异常</li>
<li>支持动态语言</li>
<li>支持try-with-resources</li>
<li>引入Java NIO.2开发包</li>
<li>数值类型可以用二进制字符串表示，并且可以在字符串中添加下划线</li>
<li>钻石型语法</li>
<li>null值的自动处理</li>
</ul>
<h3 id="Java-8"><a href="#Java-8" class="headerlink" title="Java 8"></a>Java 8</h3><blockquote>
<p>2014</p>
</blockquote>
<ul>
<li>Lambda表达式</li>
<li>接口的默认方法与静态方法</li>
<li>方法引用</li>
<li>重复注解@Repeatable</li>
<li>扩展注解的支持</li>
<li>Optional类（防止空指针异常）</li>
<li>Stream（类似于MapReduce）</li>
<li>Date/Time API(JSR 310) </li>
<li>JavaScript引擎Nashorn（允许Java与JavaScript互相调用）</li>
<li>Base64</li>
<li>更好的类型推测机制</li>
<li>编译器优化</li>
<li>并行数组</li>
<li>JVM的PermGen空间替换为Metaspace</li>
</ul>
  
	</div>
		<footer class="article-footer clearfix">
<div class="article-catetags">

<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/iblog/categories/Java/">Java</a>
</div>


  <div class="article-tags">
  
  <span></span> <a href="/iblog/tags/Java/">Java</a>
  </div>

</div>



	<div class="article-share" id="share">
	
	<div class="share-jiathis">
	  
<div class="jiathis_style_24x24">
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_googleplus"></a>
	<a class="jiathis_button_douban"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript" >
    var jiathis_config={
    data_track_clickback:true,
    sm:"copy,renren,cqq",
    pic:"",
    summary:"",
     ralateuid:{"tsina":"1869073983"},hideMore:false}
    
  </script> 
<script type="text/javascript" src="//v3.jiathis.com/code/jia.js?uid=
" charset="utf-8"></script>      

	 </div>
	
	</div>


</footer>

   	       
	</article>
	
<nav class="article-nav clearfix">
 

<div class="next">
<a href="/iblog/2017/01/25/jquery-showhide-20170125/"  title="JQuery隐藏/显示元素">
 <strong>下一篇：</strong><br/> 
 <span>JQuery隐藏/显示元素
</span>
</a>
</div>

</nav>

	
<section id="comments" class="comment">
	<div class="ds-thread" data-thread-key="2017/02/21/java-versions/" data-title="Java各个版本的新特性" data-url="http://yanglinlin_870.oschina.io/iblog/iblog/2017/02/21/java-versions/"></div>
</section>


</div>  
      <div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>

  <div id="toc" class="toc-aside">
  <strong class="toc-title">文章目录</strong>
 
 <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-0"><span class="toc-number">1.</span> <span class="toc-text">Java 1.0</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-1"><span class="toc-number">2.</span> <span class="toc-text">Java 1.1</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-2"><span class="toc-number">3.</span> <span class="toc-text">Java 1.2</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-3"><span class="toc-number">4.</span> <span class="toc-text">Java 1.3</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-1-4"><span class="toc-number">5.</span> <span class="toc-text">Java 1.4</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-5"><span class="toc-number">6.</span> <span class="toc-text">Java 5</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-6"><span class="toc-number">7.</span> <span class="toc-text">Java 6</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-7"><span class="toc-number">8.</span> <span class="toc-text">Java 7</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java-8"><span class="toc-number">9.</span> <span class="toc-text">Java 8</span></a></li></ol>
 
  </div>

<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">

  
<div class="categorieslist">
	<p class="asidetitle">分类</p>
		<ul>
		
		  
			<li><a href="/iblog/categories/Java/" title="Java">Java<sup>1</sup></a></li>
		  
		
		  
			<li><a href="/iblog/categories/Js-JQuery/" title="Js/JQuery">Js/JQuery<sup>2</sup></a></li>
		  
		
		  
			<li><a href="/iblog/categories/Jsp/" title="Jsp">Jsp<sup>1</sup></a></li>
		  
		
		  
			<li><a href="/iblog/categories/Markdown/" title="Markdown">Markdown<sup>1</sup></a></li>
		  
		
		  
			<li><a href="/iblog/categories/hexo/" title="hexo">hexo<sup>1</sup></a></li>
		  
		
		</ul>
</div>


  
<div class="tagslist">
	<p class="asidetitle">标签</p>
		<ul class="clearfix">
		
			
				<li><a href="/iblog/tags/Js-JQuery/" title="Js/JQuery">Js/JQuery<sup>2</sup></a></li>
			
		
			
				<li><a href="/iblog/tags/Java/" title="Java">Java<sup>1</sup></a></li>
			
		
			
				<li><a href="/iblog/tags/hexo/" title="hexo">hexo<sup>1</sup></a></li>
			
		
			
				<li><a href="/iblog/tags/Markdown/" title="Markdown">Markdown<sup>1</sup></a></li>
			
		
			
				<li><a href="/iblog/tags/Jsp/" title="Jsp">Jsp<sup>1</sup></a></li>
			
		
		</ul>
</div>


  <div class="linkslist">
  <p class="asidetitle">友情链接</p>
    <ul>
        
          <li>
            
            	<a href="https://git.oschina.net/yanglinlin_870/iblog" target="_blank" title="github">github</a>
            
          </li>
        
    </ul>
</div>

  <div class="weiboshow">
  <p class="asidetitle">新浪微博</p>
    <iframe width="100%" height="119" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=119&fansRow=2&ptype=1&speed=0&skin=9&isTitle=1&noborder=1&isWeibo=0&isFans=0&uid=1869073983&verifier=aa335783&dpc=1"></iframe>
</div>


</aside>
</div>
    </div>
    <footer><div id="footer" >
	
	<div class="line">
		<span></span>
		<div class="author"></div>
	</div>
	
	
	<section class="info">
		<p> Hello ,I&#39;m Yang Linlin in China. <br/>
			This is my blog</p>
	</section>
	 
	<div class="social-font" class="clearfix">
		
		<a href="http://weibo.com/1869073983" target="_blank" class="icon-weibo" title="微博"></a>
		
		
		<a href="https://github.com/duomu" target="_blank" class="icon-github" title="github"></a>
		
		
		
		
		
		
		
		
		
		<a href="mailto:iduomuer@163.com" target="_blank" class="icon-email" title="Email Me"></a>
		
	</div>
			
		

		<p class="copyright">
		Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/wuchong/jacman" target="_blank" title="Jacman">Jacman</a> © 2017 
		
		<a href="/iblog/about" target="_blank" title="Yang Linlin">Yang Linlin</a>
		
		
		</p>
</div>
</footer>
    <script src="/iblog/js/jquery-2.0.3.min.js"></script>
<script src="/iblog/js/jquery.imagesloaded.min.js"></script>
<script src="/iblog/js/gallery.js"></script>
<script src="/iblog/js/jquery.qrcode-0.12.0.min.js"></script>

<script type="text/javascript">
$(document).ready(function(){ 
  $('.navbar').click(function(){
    $('header nav').toggleClass('shownav');
  });
  var myWidth = 0;
  function getSize(){
    if( typeof( window.innerWidth ) == 'number' ) {
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth) {
      myWidth = document.documentElement.clientWidth;
    };
  };
  var m = $('#main'),
      a = $('#asidepart'),
      c = $('.closeaside'),
      o = $('.openaside');
  c.click(function(){
    a.addClass('fadeOut').css('display', 'none');
    o.css('display', 'block').addClass('fadeIn');
    m.addClass('moveMain');
  });
  o.click(function(){
    o.css('display', 'none').removeClass('beforeFadeIn');
    a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');      
    m.removeClass('moveMain');
  });
  $(window).scroll(function(){
    o.css("top",Math.max(80,260-$(this).scrollTop()));
  });
  
  $(window).resize(function(){
    getSize(); 
    if (myWidth >= 1024) {
      $('header nav').removeClass('shownav');
    }else{
      m.removeClass('moveMain');
      a.css('display', 'block').removeClass('fadeOut');
      o.css('display', 'none');
      
      $('#toc.toc-aside').css('display', 'none');
        
    }
  });
});
</script>

<script type="text/javascript">
$(document).ready(function(){ 
  var ai = $('.article-content>iframe'),
      ae = $('.article-content>embed'),
      t  = $('#toc'),
      ta = $('#toc.toc-aside'),
      o  = $('.openaside'),
      c  = $('.closeaside');
  if(ai.length>0){
    ai.wrap('<div class="video-container" />');
  };
  if(ae.length>0){
   ae.wrap('<div class="video-container" />');
  };
  c.click(function(){
    ta.css('display', 'block').addClass('fadeIn');
  });
  o.click(function(){
    ta.css('display', 'none');
  });
  $(window).scroll(function(){
    ta.css("top",Math.max(140,320-$(this).scrollTop()));
  });
});
</script>




<script type="text/javascript">
  var duoshuoQuery = {short_name:"duomu"};
  (function() {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';ds.async = true;
    ds.src = '//static.duoshuo.com/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] 
    || document.getElementsByTagName('body')[0]).appendChild(ds);
  })();
</script> 







<link rel="stylesheet" href="/iblog/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/iblog/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
  $('.article-content').each(function(i){
    $(this).find('img').each(function(){
      if ($(this).parent().hasClass('fancybox')) return;
      var alt = this.alt;
      if (alt) $(this).after('<span class="caption">' + alt + '</span>');
      $(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>');
    });
    $(this).find('.fancybox').each(function(){
      $(this).attr('rel', 'article' + i);
    });
  });
  if($.fancybox){
    $('.fancybox').fancybox();
  }
}); 
</script>



<!-- Analytics Begin -->



<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?e2d94885cd5f0cffa594c6a64429d543";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>



<!-- Analytics End -->

<!-- Totop Begin -->

	<div id="totop">
	<a title="返回顶部"><img src="/iblog/img/scrollup.png"/></a>
	</div>
	<script src="/iblog/js/totop.js"></script>

<!-- Totop End -->

<!-- MathJax Begin -->
<!-- mathjax config similar to math.stackexchange -->


<!-- MathJax End -->

<!-- Tiny_search Begin -->

<!-- Tiny_search End -->

  </body>
</html>
